package com.hxs.learn.mapper.core;

import com.hxs.learn.common.entity.TreeJson;
import com.hxs.learn.common.mapper.SuperMapper;
import com.hxs.learn.entity.core.SysMenuPermission;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author huxinsheng
 * @date 2018-04-24 15:26:25
 */
@Mapper
@Component
public interface SysMenuPermissionMapper extends SuperMapper<SysMenuPermission> {

    /**
     * 根据角色id和菜单id查询角色菜单拥有权限列表
     * @param menuId 菜单ID
     * @return 权限树列表
     */
    List<TreeJson<Object>> selectByMenuId(String menuId);
}
